<template>
  <div class="container">
    <div class="member-aside">
      <div class="user-manage">
        <h3>我的账户</h3>
        <div class="links">
          <!-- <router-link to="/member/user">个人中心</router-link> -->
          <router-link to="/member">个人中心</router-link>
        </div>
        <h3>交易管理</h3>
        <div class="links">
          <router-link to="/member/order">我的订单</router-link>
        </div>
      </div>
      <div class="article">
        <!-- 三级路由的挂载点 -->
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped lang="scss">
.member-aside {
  display: flex;
  margin: 20px;
  .user-manage {
    width: 220px;
    background-color: #fff;
    h3 {
      padding: 20px 52px 5px;
      border-top: 1px solid #f6f6f6;
    }
    .links {
      padding: 0 52px 10px;
    }
    a {
      position: relative;
      display: block;
      line-height: 1;
      padding: 15px 0;
      color: #666;
      &:hover {
        color: $xtxColor;
      }
      &.active,
      &.router-link-exact-active {
        color: $xtxColor;

        &:before {
          display: block;
        }
      }

      &:before {
        content: "";
        display: none;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        position: absolute;
        top: 19px;
        left: -16px;
        background-color: $xtxColor;
      }
    }
  }
  .article {
    width: 1000px;
    background-color: #fff;
    margin-left: 10px;
  }
}
</style>
